<script language="javascript">
function chudemuaban(val)
{
	$.post('chitetmuaban.php',{chude:val},
										function(layve)
										{
											$("#form").hide();
											$("#form").html(layve).slideToggle(700);
											$("#form").animate({opacity: 0.9}, 400);
										}
	)
}
</script>
<?php
require("conn.php");
$sql="SELECT * FROM chudemuaban";
$bang=mysql_query($sql);
?>
<table width="1099" border="0" align="center" cellpadding="0" cellspacing="0">
 <?php
  while($row=mysql_fetch_array($bang))
  {
  ?> 
	  <tr>
		<td><a href="#" style="text-decoration:none" onClick="chudemuaban(<?php echo($row["ma"]);?>)"><?php echo($row["ten"]);?></a></td>
		<?php if($row=mysql_fetch_array($bang)){ ?>
		<td> <a href="#" style="text-decoration:none" onClick="chudemuaban(<?php echo($row["ma"]);?>)"><?php echo($row["ten"]);?></a></td>
		<?php } else {break;}?>
		<?php if($row=mysql_fetch_array($bang)){ ?>
		<td> <a href="#" style="text-decoration:none" onClick="chudemuaban(<?php echo($row["ma"]);?>)"><?php echo($row["ten"]);?></a></td>
		<?php } else {break;}?>
		<?php if($row=mysql_fetch_array($bang)){ ?>
		<td> <a href="#" style="text-decoration:none" onClick="chudemuaban(<?php echo($row["ma"]);?>)"><?php echo($row["ten"]);?></a></td>
		<?php } else {break;}?>
		<?php if($row=mysql_fetch_array($bang)){ ?>
		<td> <a href="#" style="text-decoration:none" onClick="chudemuaban(<?php echo($row["ma"]);?>)"><?php echo($row["ten"]);?></a></td>
		<?php } else {break;}?>
		<?php if($row=mysql_fetch_array($bang)){ ?>
		<td> <a href="#" style="text-decoration:none" onClick="chudemuaban(<?php echo($row["ma"]);?>)"><?php echo($row["ten"]);?></a></td>
		<?php } else {break;}?>
		<?php if($row=mysql_fetch_array($bang)){ ?>
		<td> <a href="#" style="text-decoration:none" onClick="chudemuaban(<?php echo($row["ma"]);?>)"><?php echo($row["ten"]);?></a></td>
		<?php } else {break;}?>
		<?php if($row=mysql_fetch_array($bang)){ ?>
		<td> <a href="#" style="text-decoration:none" onClick="chudemuaban(<?php echo($row["ma"]);?>)"><?php echo($row["ten"]);?></a></td>
		<?php } else {break;}?>
	  </tr>
  <?php
	}
  ?> 
</table>
